#pragma once

#include "QuestionEditDialog.h"
#include "afxwin.h"
// CEditFiledQuestionDlg dialog

class CEditFiledQuestionDlg : public CQuestionEditDialog
{
    DECLARE_DYNAMIC(CEditFiledQuestionDlg)

public:
    CEditFiledQuestionDlg(UINT nIDTemplate, CWnd* pParent = NULL);   // standard constructor
    virtual ~CEditFiledQuestionDlg();

protected:
    CEdit m_editTitle;
    bool m_extracted;
    std::string m_tempPath;
    CListCtrl m_listFiles;
    CEdit m_editAnswerFiles;

    void InitFiles(void);
    void CleanFiles(void);

protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    virtual void OnOK();
    virtual void OnCancel();

    DECLARE_MESSAGE_MAP()
public:
    virtual BOOL OnInitDialog();
    afx_msg void OnBnClickedButtonAddfiles();
    afx_msg void OnBnClickedButtonDeletefile();
    afx_msg void OnNMClickListFiles(NMHDR *pNMHDR, LRESULT *pResult);
    afx_msg void OnBnClickedButtonSetdefault();
    afx_msg void OnBnClickedButtonInsertanswerdir();

};
